package com.kylin.dal.entity.marketing.groupon;

import com.kylin.shared.common.entity.BaseEntry;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 拼团配置记录项
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年12月04日 20:07
 */
@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "t_marketing_groupon_applied", catalog = "db_kylin_artwork")
public class GrouponAppliedEntry extends BaseEntry implements Serializable {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column private Long id;

    @Column(name = "campaign_id")
    private Long campaignId;

    @Column(name = "apply_no")
    private Long applyNo;

    @Column(name = "user_id")
    private Long userId;

    @Column(name = "order_no")
    private String orderNo;

    @Column(name = "grouper_type", columnDefinition = "BIT")
    private Integer grouperType;

    @Column(name = "state", columnDefinition = "TINYINT")
    private Integer grouponState;

    @Column(name = "groupon_at")
    private Long grouponAt;

    @Column(name = "created_at")
    private Long createdAt;

    @Column(name = "updated_at")
    private Long updatedAt;
}
